package com.kb.erp.controller;

import cn.hutool.http.HttpUtil;
import com.kb.erp.common.ApiResponse;
import com.kb.erp.service.PcbaOrderService;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.time.LocalDateTime;

/**
 * 造物云
 *
 * @author makejava
 * @since 2023-11-24 09:37:01
 */
@RestController
@RequestMapping("ZW")
public class ZWController {


    /**
     * 清理造物缓存
     * @param
     * @return
     */
    @GetMapping("/clearCache")
    @XxlJob("clearCache")
    public ApiResponse clearCache() {
        String str = HttpUtil.get("http://192.168.10.18:8024/api/FactoryUI/MsgGinterface?CMD=2");
        XxlJobHelper.log(str);
        return ApiResponse.success(str);
    }


}

